<?php
	require_once('Connections/conexao.php');
	
	mysql_select_db($database_conexao, $conexao);
	
	$id = $_SESSION['id'];
?>

<div id="safe-cadastrar">
<h1>Conta no Bagulho</h1>
<hr />

<!-- LADO ESQUERDO -->
<div id="cad-left">
   	<a href="?pg=perfil"><h2>Dados Pessoais</h2></a>    
   	<a href="?pg=acesso"><h2 class="cad-select">Alterar Senha</h2></a>
    <a href="?pg=inbox"><h2>Inbox</h2></a>
</div>


<!-- LADO DIREITO -->
<div id="cad-right">
	<h2 class="cad-title" style="width:175px;">Alterar Senha</h2>
    <hr />
    
    <form name="editarUsuario" method="post" action="files/lib/php/alterar-senha.php">
    	<input type="hidden" name="id_usuario" id="id_usuario" value="<?php echo $id; ?>" />    
    	<table>
			<tr>
            	<td><div align="left">Digite sua senha atual</div></td>
			</tr>
            <tr>
            	<td><input type="password" name="senhaAtual" class="campo-cad" autofocus /></td>
            </tr>
            <tr height="10px">
	            <td></td>
                <td></td>
                <td></td>
            </tr>
			<tr>
            	<td><div align="left">Digite uma senha nova</div></td>
            </tr>
            <tr>
            	<td><input type="password" name="password" class="campo-cad" /></td>
            </tr>
            <tr height="10px">
	            <td></td>
                <td></td>
                <td></td>
            </tr>
        	<tr>
            	<td><div align="left">Repita a senha nova</div></td>
            </tr>
            <tr>
            	<td><input type="password" name="passwordVerify" class="campo-cad" /></td>
            </tr>                       
        </table>
        
        <div class="safe-botao">
 	       <input type="submit" name="atualizar" id="atualizar" value="Alterar Senha" class="box-form"/>
        </div>
    </form>
    
</div>

</div>